Button

enum Button

A DOM mouse button.

Entries

Link copied to clipboard

A main mouse button. Usually the left button or the un-initialized state.

Link copied to clipboard

An auxiliary button. Usually the wheel button or the middle button (if present).

Link copied to clipboard

A secondary button. Usually the right button.

Link copied to clipboard

A fourth button. Typically the Browser Back button.

Link copied to clipboard

A fifth button. Typically the Browser Forward button.

Functions

Link copied to clipboard
open fun number(): Int
Returns a number of the button.
Link copied to clipboard
open fun of(number: Int): MouseEvent.Button
Returns the Button instance for the given value.
Link copied to clipboard

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Link copied to clipboard

Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants.